
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>辅助资料--行业修改</title>
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script language="JavaScript" charset="UTF-8"
			src="<%=request.getContextPath()%>/js/public.js"></script>
		<script type="text/javascript" charset="UTF-8"
			src="<%=request.getContextPath()%>/js/validate.js"></script>
	<script type="text/javascript">
			function validate()
			{	
			var code = document.getElementById("code");
			var name = document.getElementById("name");
					
			//验证行业代码
				if(!isNotNull(code,'行业代码')||!f_check_NumOrLett(code,'行业代码') || !f_check_stringLength(code, '行业代码', 12))
					
					return false;	
										
			//验证行业名称
			if(!(isNotNull(name,'行业名称')||!f_check_ZhOrNumOrLett(name,'行业名称')) || !f_check_stringLength(name, '行业名称', 12))
				return false;			
		}		
		</script>
	</head>

	<body>
		<div id="info_all" style="width: 284px;">
			<div id="info_top">
				辅助资料--行业修改
			</div>
			<s:form action="editIndustry.action" method="post" theme="simple" onsubmit="return validate()">
			<div style="width: 280px; margin-top: 6px; height: 130px;">
				<table
					style="margin-top: 10px; background: #fbfbfb; color: #403040;"
					align="center">
					<tr>
						<td>
							代码*
						</td>
						<td>
							<s:textfield name="pbaseassistantmaterialIndustryModel.industryCode"  size="12" id="code"></s:textfield>
						</td>
					</tr>
					<tr>
						<td>
							名称*
						</td>
						<td>
							<s:textfield name="pbaseassistantmaterialIndustryModel.industryName"  size="12" id="name"></s:textfield>
						</td>
					</tr>
					<tr>
				   <tr>
						<td align="right">

							<input type="submit" value="保存"
								onFocus="this.blur()" onmouseover="this.className='btnover'"
								onmouseout="this.className='btnout'" class="btnsize" />
						</td>
						<td align="center">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="reset" value="返回" 
								onFocus="this.blur()" onmouseover="this.className='btnover'"
								onmouseout="this.className='btnout'" class="btnsize" onclick="javascript:history.back()"/>
						</td>
					</tr>
				</table>
			</div>
			</s:form>
		</div>
	</body>
</html>

 
